home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / DINKDEMO / DC_TEXTE / DTEDITDO.H < prev    next >
Text File  |  1992-07-07  |  1KB  |  58 lines

  1. /*
  2.     File:        DTEditDoc.h
  3.  
  4.     Written by:    Mark Gross
  5.  
  6.     Copyright:    ⌐ 1992 by Applied Technical Software, all rights reserved.
  7.     Use at your own risk.
  8.  
  9. */
  10.  
  11. // This is the class declaration for the DTEditDoc subclass
  12. // of DDocument
  13.  
  14. #ifndef __DTEDITDOC__
  15. #define __DTEDITDOC__
  16.  
  17. #include "DDocument.h"
  18.  
  19. class DTEditDoc : public DDocument
  20. {
  21. public:
  22.     
  23.     TEHandle        fText;
  24.     
  25.     DTEditDoc();
  26.     ~DTEditDoc();
  27.         
  28.     virtual     DDocument* Init( Boolean OpenFromFile);
  29.     
  30.     virtual void     AEInitDoc(FSSpec *theFSS);
  31.  
  32.     virtual void HandleMenuChoice(short menuID, short menuItem);            
  33.                 
  34.     virtual void SetUpMenues(void);
  35.     virtual DWindow*     MakeWindow(Boolean hasColorWindows);
  36.  
  37.     virtual OSErr         ReadData(short refNum, long *size);
  38.     virtual OSErr         WriteData(short refNum);
  39.  
  40. protected:
  41.  
  42.     virtual void DoPaste(void);
  43.     virtual void DoCopy(void);
  44.     virtual void DoClear(void);
  45.     virtual void DoCut(void);
  46.     virtual void DoSellectAll(void);
  47.  
  48. }; //end of DTEditDoc class declaration
  49.  
  50.  
  51. #define    kHAdjust    50
  52. #define    kWAdjust    40
  53.  
  54. #define kTEMargin    5
  55. #define kMaxShort    32767
  56.  
  57. #endif __DTEDITDOC__
  58.